<?php
class Site_Filter_Magicquotes implements Zend_Filter_Interface {
    public function filter($value) {
        if (!function_exists('get_magic_quotes_gpc'))
            return $value;
        if (!get_magic_quotes_gpc())
            return $value;
        return is_array($value) ? array_map('stripslashes', $value) :
            stripslashes($value);
    }
}
?>
